package demo;
public class Animal {
    public String name;
    public int age;
    public Animal(int age,String name){
        this.age=age;
        this.name=name;
    }
    public void eat(){
    System.out.println("吃东西");
    }
}
